<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- jsp标签-->
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<html>

<head>
<title>login</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css"
	href="/cc/css/style.css" />

<%-- <style type="text/css">
			div{
				width:100px;
				height:100px;
				border:solid 1px red;
			}
		</style> --%>
</head>


<body>
	<div id="wrap">
		<div id="top_content">
			<div id="header">
				<div id="rightheader">
					<p>
						<!-- 2009/11/20 -->
						<fmt:formatDate value="${pageScope.d }"
							pattern="yyyy-MM-dd HH:mm:ss" />
						<br />
					</p>
				</div>
				<div id="topheader">
					<h1 id="title">
						<a href="#">main</a>
					</h1>
				</div>
				<div id="navigation"></div>
			</div>
			<div id="content">
				<p id="whereami"></p>
				<h1>Welcome!</h1>
				<table class="table">
					<tr class="table_header">
						<td>ID</td>
						<td>姓名</td>
						<td>年龄</td>
						<td>性别</td>
						<td>操作</td>
					</tr>
					<c:forEach items="${requestScope.map}" var="map">
						<tr class="row1">
							<td><c:out value="${map.id}"></c:out></td>
							<td><c:out value="${map.name}"></c:out></td>
							<td><c:out value="${map.age}"></c:out></td>
							<c:if test="${map.gender==0}">
							<td><c:out value="女"></c:out></td>
							</c:if>
							<c:if test="${map.gender==1}">
								<td><c:out value="男"></c:out></td>
							</c:if>
							<%--<td><c:out value="${map.state}"></c:out></td>--%>
							<td><a
								href="delete.do?id=${map.id}">
									删除</a>&nbsp;<a
								href="showOne.do?id=${map.id}">
									修改</a></td>
						</tr>
					</c:forEach>
					<!-- <tr class="row2">
							<td>
								2
							</td>
							<td>
								lishi
							</td>
							<td>
								20000
							</td>
							<td>
								20
							</td>
							<td>
								<a href="emplist.html">delete emp</a>&nbsp;<a href="updateEmp.html">update emp</a>
							</td>
						</tr> -->
				</table>
				<p>
					<!-- <input type="button" class="button" value="Add Employee" onclick="location='addEmp.html'"/> -->
					<a href="addEmp.jsp">添加</a>
				</p>
			</div>
		</div>
		<div id="footer">
			<div id="footer_bg">ABC@126.com</div>
		</div>
	</div>
</body>
</html>
